package com.wm.blog_web.dao;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wm.blog_common.base.BaseDAO;
import com.wm.blog_common.bean.QueryPage;
import com.wm.blog_common.entity.TComment;
import com.wm.blog_web.mapper.TCommentMapper;
import com.wm.blog_web.query.TCommentQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 评论表 服务DAO层
 * </p>
 *
 * @author wm_yu
 * @since 2020-03-24
 */
@Repository
public class TCommentDAO extends BaseDAO<TCommentMapper, TComment> {

    @Autowired
    private TCommentMapper tCommentMapper;
    /**
     * 评论分页查询
     * @param page
     * @param query
     * @return
     */
    public IPage<TComment> commentPage(QueryPage page, TCommentQuery query) {
       return tCommentMapper.commentPage(page,query);
    }
}

